package com.yn.service.service;

import com.baomidou.mybatisplus.extension.service.IService;

import com.github.pagehelper.PageInfo;
import com.yn.common.model.article.ArticleTitleManage;
import com.yn.common.request.sc.ArticleManageRequest;
import com.yn.common.request.sc.ArticleManageSearchRequest;
import com.yn.common.request.sc.ArticleTransitSearchRequest;
import com.yn.common.request.sc.PageParamRequest;
import com.yn.common.response.zy.DictResponse;
import com.yn.common.vo.ArticleManageVO;
import com.yn.common.vo.ArticleTransitVO;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 栏目管理 服务类
 * </p>
 *
 * @author yimiliu
 * @since 2025-06-26
 */
public interface IArticleTitleManageService extends IService<ArticleTitleManage> {

    /**
     *新增栏目内容
     */
    boolean create(ArticleManageRequest request);

    /**
     * 修改栏目内容
     */
    boolean updateTitleInfo(ArticleManageRequest request);

    /**
     * 删除文章管理表
     * @param id Integer
     */
    boolean deleteById(Long id);

    /**
     * 获取文章管理表列表
     */
    PageInfo<ArticleManageVO> getAdminList(ArticleManageSearchRequest request, PageParamRequest pageParamRequest);

    /**
     * 查询字典
     * @param dictName 字典名称
     * @return 字典数据
     */
    List<DictResponse> showDictType(String dictName);

    /**
     * 根据字段名称获取字典项信息
     * @param dictName 字段名称
     * @return Map<value,name>
     */
    Map<String, String> showDictType2Map(String dictName);
}
